/**
 * Created by licc on 27/10/2020.
 */
import { VuexModule, Module, Mutation, Action, getModule } from 'vuex-module-decorators'
import { commonAction } from '@/utils/common'
import store from '@/store'
export interface TicketState {
  ticketData: any
}

@Module({ dynamic: true, name: 'ticket', store, namespaced: false })
class Ticket extends VuexModule implements TicketState {
  public ticketData = {}
  @Action
  public async TicketCommonAction (params: object) {
    return commonAction(params).then(resp => {
      return resp
    })
  }

  @Mutation
  private SET_TEMPLATE (data: any) {
    // this.ticketData = data
  }
}

export const TicketModule = getModule(Ticket)
